import { Global, Module } from '@nestjs/common';
import { DailyService } from './daily.service';
import { DailyController } from './daily.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Daily } from './entities/daily.entity';
import { Like } from 'src/like/entities/like.entity';
import { Comment } from 'src/comment/entities/comment.entity';
import { Upload } from 'src/upload/entities/upload.entity';

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([Daily, Like, Comment, Upload])],
  controllers: [DailyController],
  providers: [DailyService],
  exports: [DailyService]
})
export class DailyModule {}
